Add a small comments
authorMatthias Clasen <mclasen@redhat.com>
Fri, 3 Feb 2012 12:27:10 +0000 (07:27 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 14 Feb 2012 21:36:54 +0000 (16:36 -0500)
gtk/gtkcolorchooserwidget.c
gtk/gtkcoloreditor.c

index fbf5756619de8b7d6ccf3569847593d444d324f2..a299f98f9e720ed678e46066b192df65991e0751 100644 (file)
@@ -93,6 +93,7 @@ button_activate (GtkColorSwatch        *swatch,
 {
   GdkRGBA color;
 
+  /* somewhat random, makes the hairline nicely visible */
   color.red = 0.75;
   color.green = 0.25;
   color.blue = 0.25;
index 3bc7f0a52e4fe7756662265de71abff91b795c09..99e3c534aefb71e1e29a2b6fd467f776b7d5c911 100644 (file)
@@ -425,6 +425,10 @@ gtk_color_editor_init (GtkColorEditor *editor)
   gtk_grid_attach (GTK_GRID (grid), editor->priv->h_slider, 0, 1, 1, 1);
   gtk_grid_attach (GTK_GRID (grid), editor->priv->sv_plane, 1, 1, 2, 1);
   gtk_grid_attach (GTK_GRID (grid), editor->priv->a_slider, 1, 2, 2, 1);
+
+  /* This extra alignment is necessary so we have room to the sides
+   * to place the popups as desired
+   */
   alignment = gtk_alignment_new (0.5, 0.5, 0, 0);
   gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 0, 0, 30, 30);
   gtk_container_add (GTK_CONTAINER (editor->priv->overlay), alignment);